package com.xiaojianhx.demo.jmh;

import org.openjdk.jmh.annotations.Benchmark;
import org.openjdk.jmh.runner.Runner;
import org.openjdk.jmh.runner.RunnerException;
import org.openjdk.jmh.runner.options.OptionsBuilder;

public class JMHSample_01_HelloWorld {

    @Benchmark
    public void execute() {
        System.out.println("a");
    }

    public static void main(String[] args) throws RunnerException {

        var opt = new OptionsBuilder()

                .include(JMHSample_01_HelloWorld.class.getSimpleName())

//                .forks(3)

                .build();

        new Runner(opt).run();
    }
}